<?php

   //   require('./includes/config.inc.php');
//echo $_SESSION["PHPAUCTION_LOGGED_IN"];
   
   
   
$tab_link1 = "index.php";
$tab_title1 = "<img src=images/blank_menu.gif >"; 
$tab_link2 = "register.php";
$tab_title2 = $MSG_163; 

$tab_link3 = "my_auctions.php";
$tab_title3 = $TABS_MENU_MY_AUCTIONS; 
$tab_link3logout = "logout.php";
$tab_title3logout = $MSG_245; 
$tab_link4 = "buybids.php";
$tab_title4 = $TABS_MENU_BUY_BIDS1; 
$tab_link5 = "how_it_works.php";
$tab_title5 = $HOW_IT_WORKS;
$tab_link6 = "about_us.php";
$tab_title6 = $MSG_5085;
$tab_link7 = "contact_us.php";
$tab_title7 = "$MSG_25_0086";
$tab_link8 = "view_all_live_auctions_phone.php";
$tab_title8 = "<img src=images/blank_menu.gif >";   

$tab_menu = "<DIV class=TAB_BOX_0N > <!-- To Turn Off Header Change The \"class\" to \"TAB_BOX_OFF\" -->";

   if ( $tabid == 1 ) {

$tab_menu .= "<DIV class=TAB_ACTIVATED_LEFT >"; 
// $tab_menu .= "<a HREF=".$tab_link1." class=\"TAB_ACTIVATED_LEFT\" >".$tab_title1." </a>";
$tab_menu .= "	<div class=\"menu2\">
			  	<ul>
			
                        
      	<li><a HREF=\"$tab_link1\" class=\"TAB_ACTIVATED_LEFT\" >$tab_title1</a>
			
         
				</li>    
			 </ul>	
		</div></DIV>";                
    }
  
  else {
  
$tab_menu .= "<DIV class=TAB_DEACTIVATED_LEFT >"; 
//$tab_menu .= "<a HREF=".$tab_link1." class=\"TAB_DEACTIVATED_LEFT\" >".$tab_title1." </a>";
$tab_menu .= "	<div class=\"menu2\">
			  	<ul>
			
                        
      	<li><a HREF=\"$tab_link1\" class=\"TAB_DEACTIVATED_LEFT\" >$tab_title1</a>
			
         
				</li>    
			 </ul>	
		</div></DIV>";                   
  }
  
  
 

   
   
if ( $tabid == 2 ) {

$tab_menu .= "<DIV class=TAB_ACTIVATED >"; 
//$tab_menu .= "<a HREF=".$tab_link3." class=\"TAB_ACTIVATED\" >".$tab_title3." </a>";
$tab_menu .= "	<div class=\"menu1a\">
			  	<ul>
			
                        
      	<li><a HREF=\"$tab_link2\" class=\"TAB_ACTIVATED\" >$tab_title2</a>
			

</ul>          
				</li>    
			 </ul>	
		</div></DIV>";                
    }
  
  else {
  
$tab_menu .= "<DIV class=TAB_DEACTIVATED >"; 
//$tab_menu .= "<a HREF=".$tab_link3." class=\"TAB_DEACTIVATED\" >".$tab_title3." </a>";
$tab_menu .= "	<div class=\"menu1a\">
			  	<ul>
			
                        
      	<li><a HREF=\"$tab_link2\" class=\"TAB_ACTIVATED\" >$tab_title2</a>
			

</ul>          
				</li>    
			 </ul>	
		</div></DIV>";                  
  } 
  
  
  
     if($_SESSION["PHPAUCTION_LOGGED_IN"]) {
          	/* user is logged in */
	  
  
    if ( $tabid == 3 ) {

$tab_menu .= "<DIV class=TAB_ACTIVATED >"; 
//$tab_menu .= "<a HREF=\"user_login.php\" class=\"TAB_ACTIVATED\" style=\"background: transparent url(images/tab_activated.jpg) no-repeat scroll right center; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous\">".$tab_title2." </a>" ;
$tab_menu .= "

	<div class=\"menu1a\">
			  	<ul>
			
                        
      <li><a HREF=\"user_login_form.php\" class=\"TAB_ACTIVATED\" >$tab_title3</a>>
			<ul>                                                                      
<li style=\"margin-top: -5px;\"><A HREF=\"payments.php\">$MY_AUCTION_PAYMENT_HISTORY</A></li>
<li style=\"margin-top: -5px;\"><A HREF=\"item_watch.php\">$MSG_472</A></li>
<li style=\"margin-top: -5px;\"><A HREF=\"buying.php\">$MY_AUCTION_WIN_HISTORY</A></li>
<li style=\"margin-top: -5px;\"><A HREF=\"yourbids.php\">$MY_AUCTION_BID_HISTORY</A></li>
<li style=\"margin-top: -5px;\"><A HREF=\"refer_a_friend_send.php\">$Refer_A_Friend</A></li>
<li style=\"margin-top: -5px;\"><A HREF=\"promo_code.php\">$REGISETER_PAGE_PROMOCODE</A></li>
<li style=\"margin-top: -5px;\"><A HREF=\"edit_data.php\">$MY_AUCTION_EDIT_PROFILE</A></li>
<li style=\"margin-top: -5px \"  ><A style=\"background:url(images/All_categories_last.gif) no-repeat; height:3px;\" HREF=\"\"></A></li>  

</ul>          
				</li>    
			 </ul>	
		</div>




</DIV>";                
    }
  
  else {
  
$tab_menu .= "<DIV class=TAB_DEACTIVATED >"; 
//$tab_menu .= "<a HREF=\"user_login.php\" class=\"TAB_ACTIVATED\" style=\"background: transparent url(images/tab_activated.jpg) no-repeat scroll right center; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous\">".$tab_title2." </a>" ;
$tab_menu .= "

	<div class=\"menu1a\">
			  	<ul>
			
      	<li><a HREF=\"buying.php\" class=\"TAB_ACTIVATED\" >$TABS_MENU_MY_AUCTIONS</a>                  
      	
			
				<ul>
<li style=\"margin-top: -5px;\"><A HREF=\"payments.php\">$MY_AUCTION_PAYMENT_HISTORY</A></li>
<li style=\"margin-top: -5px;\"><A HREF=\"item_watch.php\">$MSG_472</A></li>
<li style=\"margin-top: -5px;\"><A HREF=\"buying.php\">$MY_AUCTION_WIN_HISTORY</A></li>
<li style=\"margin-top: -5px;\"><A HREF=\"yourbids.php\">$MY_AUCTION_BID_HISTORY</A></li>
<li style=\"margin-top: -5px;\"><A HREF=\"refer_a_friend_send.php\">$Refer_A_Friend</A></li>
<li style=\"margin-top: -5px;\"><A HREF=\"promo_code.php\">$REGISETER_PAGE_PROMOCODE</A></li>
<li style=\"margin-top: -5px;\"><A HREF=\"edit_data.php\">$MY_AUCTION_EDIT_PROFILE</A></li>
<li style=\"margin-top: -5px \"  ><A style=\"background:url(images/All_categories_last.gif) no-repeat; height:3px;\" HREF=\"\"></A></li>  

</ul>            
				</li>    
			 </ul>	
		</div>




</DIV>";                  
  }
   
 }  
   
    if(!$_SESSION["PHPAUCTION_LOGGED_IN"]) {
          	/* user is logged in */
         
if ( $tabid == 3 ) {

$tab_menu .= "<DIV class=TAB_ACTIVATED >"; 
//$tab_menu .= "<a HREF=\"user_login.php\" class=\"TAB_ACTIVATED\" >".$tab_title2." </a>";
$tab_menu .= "	<div class=\"menu1a\">
			  	<ul>
			
                        
      	<li><a HREF=\"user_login_form.php\" class=\"TAB_ACTIVATED\" >$tab_title3</a>
			
         
				</li>    
			 </ul>	
		</div></DIV>";                 
    }
  
  else {
  
$tab_menu .= "<DIV class=TAB_DEACTIVATED >"; 
//$tab_menu .= "<a HREF=\"user_login.php\" class=\"TAB_DEACTIVATED\" >".$tab_title2." </a>";
$tab_menu .= "	<div class=\"menu1a\">
			  	<ul>
			
                        
      	<li><a HREF=\"user_login_form.php\" class=\"TAB_DEACTIVATED\" >$tab_title3</a>
			
         
				</li>    
			 </ul>	
		</div></DIV>"; 
                 
  }
   
 }  	   
 
    
 
 
if ( $tabid == 4 ) {

$tab_menu .= "<DIV class=TAB_ACTIVATED >"; 
//$tab_menu .= "<a HREF=".$tab_link4." class=\"TAB_ACTIVATED\" >".$tab_title4." </a>";
$tab_menu .= "	<div class=\"menu1a\">
			  	<ul>
			
                        
      	<li><a HREF=\"$tab_link4\" class=\"TAB_DEACTIVATED\" >$tab_title4</a>
			
         
				</li>    
			 </ul>	
		</div></DIV>";            
    }
  
  else {
  
$tab_menu .= "<DIV class=TAB_DEACTIVATED >"; 
//$tab_menu .= "<a HREF=".$tab_link4." class=\"TAB_DEACTIVATED\" >".$tab_title4." </a>";
$tab_menu .= "	<div class=\"menu1a\">
			  	<ul>
			
                        
      	<li><a HREF=\"$tab_link4\" class=\"TAB_DEACTIVATED\" >$tab_title4</a>
			
         
				</li>    
			 </ul>	
		</div></DIV>";                    
  }
 
 
if ( $tabid == 5 ) {

$tab_menu .= "<DIV class=TAB_ACTIVATED >";                                 
//$tab_menu .= "<a HREF=".$tab_link5." class=\"TAB_ACTIVATED\" >".$tab_title5." </a>";
$tab_menu .= "<div class=\"menu1a\">
			  	<ul>
			
                        
      	<li><a HREF=\"$tab_link5\" class=\"TAB_ACTIVATED\" >$tab_title5</a>
			
				          
				</li>    
			 </ul>	
		</div></DIV>";                
    }
  
  else {
  
$tab_menu .= "<DIV class=TAB_DEACTIVATED >"; 
//$tab_menu .= "<a HREF=".$tab_link5." class=\"TAB_DEACTIVATED\" >".$tab_title5." </a>" ;
$tab_menu .= "<div class=\"menu1a\">
			  	<ul>
			
                        
      	<li><a HREF=\"$tab_link5\" class=\"TAB_ACTIVATED\" >$tab_title5</a>
			        
				</li>    
			 </ul>	
		</div></DIV>";                  
  } 
  
  if ( $tabid == 6 ) {

$tab_menu .= "<DIV class=TAB_ACTIVATED >";                                 
//$tab_menu .= "<a HREF=".$tab_link5." class=\"TAB_ACTIVATED\" >".$tab_title5." </a>";
$tab_menu .= "<div class=\"menu1a\">
			  	<ul>
			
                        
      	<li><a HREF=\"$tab_link6\" class=\"TAB_ACTIVATED\" >$tab_title6</a>
			
				<ul><li style=\"margin-top: -5px;\"><A HREF=\"privacy_policy.php\">$REGISTER_PAGE_PRIVACY_POLICY</A></li>
<li style=\"margin-top: -5px;\"><A HREF=\"terms_and_conditions.php\">$MSG_5086</A></li>
<li style=\"margin-top: -5px \"  ><A style=\"background:url(images/All_categories_last.gif) no-repeat; height:3px;\" HREF=\"\"></A></li>  

</ul>          
				</li>    
			 </ul>	
		</div></DIV>";                
    }
  
  else {
  
$tab_menu .= "<DIV class=TAB_DEACTIVATED >"; 
//$tab_menu .= "<a HREF=".$tab_link5." class=\"TAB_DEACTIVATED\" >".$tab_title5." </a>" ;
$tab_menu .= "<div class=\"menu1a\">
			  	<ul>
			
                        
      	<li><a HREF=\"$tab_link6\" class=\"TAB_ACTIVATED\" >$tab_title6</a>
			
				<ul><li style=\"margin-top: -5px;\"><A HREF=\"privacy_policy.php\">$REGISTER_PAGE_PRIVACY_POLICY</A></li>
<li style=\"margin-top: -5px;\"><A HREF=\"terms_and_conditions.php\">$MSG_5086</A></li>
<li style=\"margin-top: -5px \"  ><A style=\"background:url(images/All_categories_last.gif) no-repeat; height:3px;\" HREF=\"\"></A></li>  

</ul>          
				</li>    
			 </ul>	
		</div></DIV>";                  
  } 

  if ( $tabid == 7 ) {

$tab_menu .= "<DIV class=TAB_ACTIVATED >";                                 
//$tab_menu .= "<a HREF=".$tab_link5." class=\"TAB_ACTIVATED\" >".$tab_title5." </a>";
$tab_menu .= "<div class=\"menu1a\">
			  	<ul>
			
                        
      	<li><a HREF=\"$tab_link7\" class=\"TAB_ACTIVATED\" >$tab_title7</a>
			
			               
				</li>    
			 </ul>	
		</div></DIV>";                
    }
  
  else {
  
$tab_menu .= "<DIV class=TAB_DEACTIVATED >"; 
//$tab_menu .= "<a HREF=".$tab_link5." class=\"TAB_DEACTIVATED\" >".$tab_title5." </a>" ;
$tab_menu .= "<div class=\"menu1a\">
			  	<ul>
			
                        
      	<li><a HREF=\"$tab_link7\" class=\"TAB_ACTIVATED\" >$tab_title7</a>
			
			
				</li>    
			 </ul>	
		</div></DIV>";                  
  } 


if ( $tabid == 8 ) {

$tab_menu .= "<DIV class=TAB_ACTIVATED_RIGHT >"; 
//$tab_menu .= "<a HREF=".$tab_link6." class=\"TAB_ACTIVATED_RIGHT\" >".$tab_title6." </a>";
$tab_menu .= "	<div class=\"menu3\">
			  	<ul>
			
                        
      	<li><a HREF=\"$tab_link8\" class=\"TAB_ACTIVATED_RIGHT\" >$tab_title8</a>
			
         
				</li>    
			 </ul>	
		</div></DIV>";               
    }
  
  else {
  
$tab_menu .= "<DIV class=TAB_DEACTIVATED_RIGHT >"; 
//$tab_menu .= "<a HREF=".$tab_link6." class=\"TAB_DEACTIVATED_RIGHT\" >".$tab_title6." </a>";
$tab_menu .= "	<div class=\"menu3\">
			  	<ul>
			
                        
      	<li><a HREF=\"$tab_link8\" class=\"TAB_DEACTIVATED_RIGHT\" >$tab_title8</a>
			
         
				</li>    
			 </ul>	
		</div></DIV>"; 
                  
  }


$tab_menu .= "</DIV> <!-- END TAB BOX 0N -->";


?>